FROM ubuntu:16.04

# cd bora/src/server
# docker build -t microembed/bora_v2:test .

ADD sources-aliyun-0.list /etc/apt/sources.list
#ADD bora_v2_init.sh /bora_v2_init.sh
RUN apt-get update
RUN apt-get install -y mongodb-server redis-server rabbitmq-server nginx python git
RUN apt-get install -y python-pip python-dev  python-qrcode supervisor
RUN pip install tornado==4.5.2 pycrypto==2.6.1 pymongo==3.5.1 motor==1.1 paho-mqtt==1.3.1 tornado-redis==2.4.18 redis==2.10.6 pyconvert==0.6.3 qrcode==5.0.1
RUN rabbitmq-server -detached
RUN rabbitmq-plugins enable rabbitmq_mqtt
#RUN ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa


